﻿using Newtonsoft.Json;

namespace Datav.Design.Core
{

    /// <summary>
    /// 
    /// </summary>
    public class TreeDto<T>
    {
        /// <summary>
        /// Id
        /// </summary>
        public virtual long Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        public virtual long ParentId { get; set; }

        /// <summary>
        /// 全路径 以逗号隔开 1,2
        /// </summary>
        public virtual string Path { get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public IEnumerable<T> Children { get; set; }



    }
}
